package com.example.lean;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class TestReceiver extends BroadcastReceiver
{
    @Override
    public void onReceive(Context context, Intent intent)
    {
        // 取出接收的数据
        String str = intent.getExtras().getString("count");
        MainActivity.txt.setText("接收:" + str);//显示接收到的数据
    }
}